package com.warren.biz.vo;

import com.warren.biz.entity.OutStockInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * @author warren
 * @create 2021-04-24 15:47
 * @Description
 */
@Data
public class GetOutStockVO {
    private Long id;

    private String outNum;

    @NotNull(message = "出库单类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "商品编号")
    private String pNum;

    private String operator;

    private Long consumerId;

    private String consumerName;

    private Integer priority;

    /**
     * 该出库单的总数
     **/
    private Integer productNumber;

    @NotBlank(message = "入库备注不能为空")
    private String remark;

    private List<OutStockInfo> products = new ArrayList<>();

    private Integer status;

    /**
     * 如果consumerId不存在需要添加去处信息
     **/

    private String name;

    private String address;

    private String phone;

    private Integer sort;

    private String contact;
}
